# check installed mysql or not
for i in `rpm -qa | grep "mysql"`
do 
rpm -e --allmatches $i --nodeps
done
rm -rf /var/lib/mysql
rm -f /etc/my.cnf

# Remove pre-installed on OS MariaDB if exists
for i in $(rpm -qa | grep mariadb | grep -v grep)
do
  echo "Deleting rpm --> "$i
  rpm -e --nodeps $i
done